package com.ant.cn.beans;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

/**
 * Created by baichuan on 2016/12/14.<br/>
 * UserBean is a value model to User<br/>
 * used to translation value and handle data of User
 */
public class UserBean implements Serializable {
    private int id;
    private String name;
    private String pass;
    private int age;
    private String telphone;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    /**
     * {@link JSON}<br/>
     * @return {@link String} of UserBean value
     */
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
